<template>
  <div class="container page">

      <!-- 已付款 -->
      <div style="text-align:center;margin:50rpx;margin-top:250rpx">{{info}}</div>

    <div style="display:flex;width: 100%">
        <div class="buttons" @click="goHome()">返回首页</div>
        <div class="buttons" @click="goUser()">返回我的</div>
    </div>
  </div>
</template>
<script>
// var WXBizDataCrypt = require('@/tools/WXBizDataCrypt')
import qcloud from 'wafer2-client-sdk'

import {showSuccess, showModal} from '@/util'
import {get, post} from '@/util'
// import {get2, post2} from '@/server/api'
import config from '@/config'
export default {

  data () {
    return {
      info: '',
      userinfo: {},
      isLogin: false,
      tabA: 0,
      productList: [],
      focus: true,
      inputValue: ''
    }
  },
  mounted () {
    // this.userinfo = wx.getStorageSync('userinfo')
  },
  onShareAppMessage() {
    return {
      title: `华人耀酱香型白酒，传承古法工艺，与国酒茅台同宗同源同品。`,
      // imageUrl: 'https://www.rrjiaoyi.com/static/rr-min/share/share.png',
      path: `/pages/hcdindex/main?shareuser=${wx.getStorageSync('user').id}`
    }
  },
  methods: {
    goHome(){
        wx.switchTab({
            url: `/pages/hcdindex/main`
        })
    },
    goUser() {
        wx.switchTab({
            url: `/pages/usercenter/main`
        })
    },
    lslogin(){
      post(`geweb/user/checkuser`, {}, {"token":wx.getStorageSync('token'),"userId":wx.getStorageSync('user').id})
      .then(result => {
      if(result.result === 'success') {
      // console.log(this.isLogin)

      this.isLogin = true
      // console.log(this.isLogin)

      }

      if(result.code === 301) {
        this.isLogin = false
      }


      })
    },

    login(){
      wx.navigateTo({
        url: `/pages/login/main`
      })
    },
    signup(){
      wx.navigateTo({
        url: `/pages/signup/main`
      })
    },
    orderList() {
      wx.navigateTo({
        url: `/pages/orderlist/main`
      })
    },
    productChoose (id) {
      // console.log(name, img, userId, accountId)
      wx.navigateTo({
        url: `/pages/product-detail/main?id=${id}`
      })
    },
    async player() {
      return await post('minipro/List', {}, {'api':'all', 'page':1})
    },
    async demo() {
    // return await get2('demo', {})
    },
    async joke() {
      return await get2('api/jokes', {})
    },
    predict () {
      wx.navigateTo({
        url: '/pages/search/main'
      })
    },
    jumpClick (comment) {
      wx.navigateTo({
        // url: '/pages/web-view/main'
        url: '/pages/web-view/main?path=' + 'https://wj.qq.com/s/2491547/f457/'
        // url: '/pages/detail/main'
      })
    }

  },
  onShow () {
    this.info = decodeURIComponent(this.$root.$mp.query.info)
  }
}
</script>

<style scoped lang='scss'>
.container{
  font-size: 30rpx;
}
page {
  background-color: #ffffff;
  width: 100%;
  height: 100%;
}
    .buttons{
        margin: 70rpx;
        margin-top: 200rpx;
        flex:1;
        text-align: center;
        // font-weight:bold;
        font-size: 25rpx;
        // width:20%;
        height:60rpx;
        line-height:60rpx;
        background: #636363;
        color: white;
        // margin-top: 30px
    }
</style>
